package com.jubao.ejb.entity;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "store_tbl", schema = "jubao_database", uniqueConstraints = {})
public class Store extends GeneEntity implements Serializable {

	private static final long serialVersionUID = -6681629456715929332L;

	@Column(nullable = false, unique = true, updatable = false)
	private String id; // unique

	private String name;

	private String fullName;

	private String tel;

	private String fax;

	private String address;

	private String zip;

	private String smallImage;

	private String mediumImage;

	private String largeImage;

	@Basic(fetch = FetchType.LAZY)
	@Column(length = 512)
	private String shortDesc;

	@Basic(fetch = FetchType.LAZY)
	@Column(length = 2048)
	private String longDesc;

	@ManyToOne
	Category primaryAreaCategory;

	@ManyToOne
	Category primaryBusinessCategory;


	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	public String getSmallImage() {
		return smallImage;
	}

	public void setSmallImage(String smallImage) {
		this.smallImage = smallImage;
	}

	public String getMediumImage() {
		return mediumImage;
	}

	public void setMediumImage(String mediumImage) {
		this.mediumImage = mediumImage;
	}

	public String getLargeImage() {
		return largeImage;
	}

	public void setLargeImage(String largeImage) {
		this.largeImage = largeImage;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the fullName
	 */
	public String getFullName() {
		return fullName;
	}

	/**
	 * @param fullName the fullName to set
	 */
	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	/**
	 * @return the tel
	 */
	public String getTel() {
		return tel;
	}

	/**
	 * @param tel the tel to set
	 */
	public void setTel(String tel) {
		this.tel = tel;
	}

	/**
	 * @return the fax
	 */
	public String getFax() {
		return fax;
	}

	/**
	 * @param fax the fax to set
	 */
	public void setFax(String fax) {
		this.fax = fax;
	}

	/**
	 * @return the address
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * @param address the address to set
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * @return the zip
	 */
	public String getZip() {
		return zip;
	}

	/**
	 * @param zip the zip to set
	 */
	public void setZip(String zip) {
		this.zip = zip;
	}

	/**
	 * @return the shortDesc
	 */
	public String getShortDesc() {
		return shortDesc;
	}

	/**
	 * @param shortDesc the shortDesc to set
	 */
	public void setShortDesc(String shortDesc) {
		this.shortDesc = shortDesc;
	}

	/**
	 * @return the longDesc
	 */
	public String getLongDesc() {
		return longDesc;
	}

	/**
	 * @param longDesc the longDesc to set
	 */
	public void setLongDesc(String longDesc) {
		this.longDesc = longDesc;
	}

	/**
	 * @return the primaryAreaCategory
	 */
	public Category getPrimaryAreaCategory() {
		return primaryAreaCategory;
	}

	/**
	 * @param primaryAreaCategory the primaryAreaCategory to set
	 */
	public void setPrimaryAreaCategory(Category primaryAreaCategory) {
		this.primaryAreaCategory = primaryAreaCategory;
	}

	/**
	 * @return the primaryBusinessCategory
	 */
	public Category getPrimaryBusinessCategory() {
		return primaryBusinessCategory;
	}

	/**
	 * @param primaryBusinessCategory the primaryBusinessCategory to set
	 */
	public void setPrimaryBusinessCategory(Category primaryBusinessCategory) {
		this.primaryBusinessCategory = primaryBusinessCategory;
	}

}
